package bank.service.department;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import bank.service.Dispatcher;

public class ErrorService extends Dispatcher {
	private static final long serialVersionUID = 1L;

	public void init() {
		this.setForwardURL("/error.jsp");	
	}
	
	public void performServiceLogic(HttpServletRequest request, HttpServletResponse response) throws Exception {
		this.setForwardURL("/error.jsp");
		request.setAttribute("enter", true);
		String error = request.getParameter("error");
		request.setAttribute("error", error);
	}
}
